<?php

interface IDataTable{

//INSERT
	public function insert($fields);

//SELECT
	public function selectFromPrimaryKey($primaryKeyValue);
	public function selectAll();
	public function select($fieldName ,$fieldValue );

//UPDATE
	public function updateFromPrimaryKeyChangeFields($primaryKeyValue,$newFieldToUpdate, $newFieldsValues);
	public function updateFromPrimaryKey($primaryKeyValue, $newFields);
	public function update($fieldNames,$fieldValues, $newFields);

//DELETE
	public function deleteFromPrimaryKey($primaryKeyValue);
	public function delete($fieldNames,$fieldValues);
}